:8090 {
    root * D:/dachuang/Servo-Automatic-UI-Generation-Example-main/Client

    @fan_page path /fan /fengshan
    rewrite @fan_page /Fan_Automatic_UI.xhtml

    @motor_page path /motor /Motor
    rewrite @motor_page /Motor_Automatic_UI.xhtml

    @html path *.html *.xhtml
    header @html Cache-Control "no-store, no-cache, must-revalidate, max-age=0"

    @rip_sse path /RIP/SSE*
    reverse_proxy @rip_sse http://localhost:8001 {
        header_up Host localhost:8001
        header_up Origin http://localhost:8001
        header_up Referer http://localhost:8001/
        header_up X-Forwarded-Host localhost:8001
        header_up X-Forwarded-Proto http

        header_down -Content-Encoding
        header_down -Content-Length
        flush_interval -1
    }

    @rip path /RIP*
    reverse_proxy @rip http://localhost:8001 {
        header_up Host localhost:8001
        header_up Origin http://localhost:8001
        header_up Referer http://localhost:8001/
        header_up X-Forwarded-Host localhost:8001
        header_up X-Forwarded-Proto http
    }

    file_server
}